@ 	if (totalPage <= 0 || currentPage > totalPage) return;
@ 	var startPage = currentPage - 2;
@	if(startPage < 1){
@ 		startPage = 1;
@ 	}
@ 	var endPage = currentPage + 2;
@ 	if(endPage > totalPage){
@ 		endPage = totalPage;
@ 	}
<!-- <div class="col-sm-6 pagination">第 ${currentPage} 页，共 ${totalPage} 页，每页 15 条，共  ${totalRow} 条 </div> -->

<ul class="pagination">
@	if(currentPage <= 5){
@ 	    startPage = 1;
@ 	}
@ 	if(totalPage - currentPage<5){
@ 		endPage = totalPage;
@ 	}
@ 	if(currentPage == 1){
        <li class="disabled"><a href="javascript:void(0)">上页</a></li>
@ 	}else{
        <li><a href="${ctxPath}${actionUrl}?pageNum=${currentPage - 1}${urlParas}">上页</a></li>
@	}
@	if(currentPage > 5){
        <li><a href="${ctxPath}${actionUrl}?pageNum=1${urlParas}">1</a></li>
        <li><a href="${ctxPath}${actionUrl}?pageNum=2${urlParas}">2</a></li>
        <li><a href="javascript:void(0)">...</a></li>
@	}
@	var index = startPage;
@ 	while(index <= endPage){
@    	if(currentPage == index){
        <li class="active"><a href="javascript:void(0)">${index}</a></li>
@     	}else{
        <li><a href="${ctxPath}${actionUrl}?pageNum=${index}${urlParas}">${index}</a></li>
@     	}
@ 	    index= index+1;
@ 	}
@	if((totalPage - currentPage) >= 5){
        <li><a href="javascript:void(0)">…</a></li>
        <li><a href="${ctxPath}${actionUrl}?pageNum=${totalPage - 1}${urlParas}">${totalPage - 1}</a></li>
        <li><a href="${ctxPath}${actionUrl}?pageNum=${totalPage}${urlParas}">${totalPage}</a></li>
@	}
@	if(currentPage == totalPage){
        <li class="disabled"><a href="javascript:void(0)">下页</a></li>
@	}else{
        <li><a href="${ctxPath}${actionUrl}?pageNum=${currentPage + 1}${urlParas}" rel="next">下页</a></li>
@	}
</ul>
